package org.flower.bean;

public class CommodityClass {
    private Integer id;

    private String name;

    private Integer pid;

    private Integer type;

    /**
     * 所属的分类名称，父级分类名称
     */
    private String pName;

    public String getpName() {
        return pName;
    }

    public void setpName(String pName) {
        this.pName = pName;
    }

    public CommodityClass(Integer id, String name, Integer pid, Integer type, String image) {
        this.id = id;
        this.name = name;
        this.pid = pid;
        this.type = type;
        this.image = image;
    }

    public CommodityClass() {
    }

    @Override
    public String toString() {
        return "CommodityClass{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", pid=" + pid +
                ", type=" + type +
                ", image='" + image + '\'' +
                '}';
    }

    private String image;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image == null ? null : image.trim();
    }
}